home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / feel0_89.lha / Feel / Src / defs.h < prev    next >
C/C++ Source or Header  |  1993-05-28  |  2KB  |  110 lines

  1. /* ******************************************************************** */
  2. /*  defs.h           Copyright (C) Codemist and University of Bath 1989 */
  3. /*                                                                      */
  4. /* Basic definitions global constants and config options                */
  5. /* ******************************************************************** */
  6.  
  7. /*
  8.  * Change Log:
  9.  *   Version 1, April 1989
  10.  */
  11.  
  12. #ifndef DEFS_H
  13. #define DEFS_H
  14.  
  15. #ifndef TRUE
  16. #define TRUE    (1)
  17. #define FALSE     (0)
  18. #endif
  19.  
  20. #define CONTINUABLE    (2)
  21. #define NONCONTINUABLE    (3)
  22.  
  23. #define STUB(name) printf("*** stub %s called\n", name)
  24.  
  25. #define IGNORE(name)    (name = name)
  26.  
  27. /* reverse a few flags */
  28. #ifndef LOWTAGINTS
  29. #define NOLOWTAGINTS
  30. #endif
  31.  
  32. #define WITH_SYS_TIMES
  33. #ifndef DEBUG
  34. #define NODEBUG
  35. #endif
  36.  
  37. #ifdef MACHINE_SYSTEMV
  38. #define MAX_PROCESSORS (10)
  39. #endif
  40.  
  41. #ifdef MACHINE_BSD
  42. #define MAX_PROCESSORS (1)
  43. #endif
  44.  
  45. #ifdef MACHINE_ANY
  46. #define MAX_PROCESSORS (1)
  47. #endif
  48.  
  49. #ifndef MAX_PROCESSORS
  50.  "Specify one of BSD, ANY, SYSTEMV"
  51. #endif
  52.  
  53. #define RESET_GLOBAL_STACK() /** GC_STACK_POINTER() = stacktop**/
  54.  
  55. #ifdef ALIGN8
  56. #define BYTE_ALIGNMENT 8
  57. #else 
  58. #define BYTE_ALIGNMENT 4
  59. #endif
  60.  
  61. #if defined(NORCROFT) || defined(UNSIGNED_CHARS)
  62. #define CHAR_IS_UNSIGNED
  63. #define SIGNED_CHAR signed char
  64. #else
  65. #define CHAR_IS_SIGNED
  66. #endif
  67.  
  68. /* Configuration section */
  69.  
  70. /* Variables that we  don't want to own up about 
  71.    STACK_START_MISALIGNED: Clipper requires stack-pointers to be
  72.                            multiples of 4, and not multiples of 8
  73.    FD_SET_PATCH_NEEDED: 4.2 BSD machine
  74.    FEEL_RC_FILE:     name of initialisation file 
  75.    CHECK_KEYBOARD:        signals are broken, so put ^C catcher in interpret loop
  76.  */
  77.  
  78. /* Standard values... */
  79. #define HAS_POPEN
  80. #define FEEL_RC_FILE "/.feelrc"
  81. #undef HAS_BCOPY /* All systems have memcpy --- right */
  82.  
  83. /* Machine dependant changes... */
  84. #ifdef __clipper
  85. #define STACK_START_MISALIGNED
  86. #define FD_SET_PATCH_NEEDED
  87. #endif
  88.  
  89. #ifdef msdos
  90. #undef HAS_POPEN
  91. #define FEEL_RC_FILE "./feel.rc"
  92. #define DIR_SEP "\\" /* Actually not necessary... */
  93. #define CHECK_KEYBOARD 5000
  94. #endif
  95.  
  96. #if 1
  97. #define HAS_READFILENO 
  98. #endif
  99.  
  100. #ifdef NORCROFT
  101. #undef HAS_POPEN
  102. #endif
  103.  
  104. #ifndef DIR_SEP
  105. #define DIR_SEP "/"
  106. #endif
  107.  
  108. #endif /* DEFS_H */
  109. /* End of defs.h */
  110.